/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: PACKAGE_NAME
 * @ClassName: Person
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/10/4 15:21
 * @Copyright 金斗版板所有
 */
public class Person {
       private String name;
       private int age;

      public String getName(){
          return this.name;
      }
      public void setName(String name){
          this.name=name;
      }

    public int getAge(){
        return this.age;
    }
    public void setAge(int age){
        this.age=age;
    }
       public Person(){

       }

    public Person(String name,int age){
        this.name=name;
        this.age=age;
    }

    public void print(){
        System.out.println("姓名:"+this.name);
        System.out.println("年龄："+this.age);
    }
}
